/**
 * 响应编码模型
 */
export interface RespCodeModel {
  /**
   * 响应编码
   */
  code: string;
  /**
   * 响应信息
   */
  message: string;
}

export const RespCodeMap = {
  /**
   * 通用请求成功
   */
  COMMON_FETCH_SUCCESS: {
    code: "FETCH_SUCCESS",
    message: "请求成功"
  },
  /**
   * 通用请求失败
   */
  COMMON_FETCH_FAIL: {
    code: "FETCH_FAIL",
    message: "请求失败"
  },
  /**
   * 登录成功
   */
  LOGIN_SUCCESS: {
    code: "LOGIN_SUCCESS",
    message: "登录成功"
  },
  /**
   * 登录失败，账号或密码错误
   */
  LOGIN_FAILT_USERNAME_PASSWORD_ERROR: {
    code: "LOGIN_FAILT_USERNAME_PASSWORD_ERROR",
    message: "账号或密码错误"
  },
  /**
   * 未鉴权
   */
  UNAUTHORIZED_ERROR: {
    code: "UNAUTHORIZED_ERROR",
    message: "未登录"
  }
};
